package com.atguigu.srb.sms.clientfeign;

import com.atguigu.srb.sms.clientfeign.fallback.CoreUserInfoClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-core", fallback = CoreUserInfoClientFallback.class)
public interface CoreUserInfoClientFeign {

    // 发送短信时校验手机号是否注册
    @GetMapping("/api/core/userInfo/checkMobile/{mobile}")
    public Boolean checkMobile(@PathVariable("mobile") String mobile);
}
